package vo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private Integer id;
	private Producttype producttype;
	private String productNo;
	private String productName;
	private String remark;
	@JSONField(format="yyyy/MM/dd")
	private Timestamp createdTime;
	@JSONField(format="yyyy/MM/dd")
	private Timestamp updateTime;
	private String image;
	private Set specs = new HashSet(0);

	// Constructors

	/** default constructor */
	public Product() {
	}

	/** minimal constructor */
	public Product(Producttype producttype, String productNo,
			String productName, Timestamp createdTime) {
		this.producttype = producttype;
		this.productNo = productNo;
		this.productName = productName;
		this.createdTime = createdTime;
	}

	/** full constructor */
	public Product(Producttype producttype, String productNo,
			String productName, String remark, Timestamp createdTime,
			Timestamp updateTime, String image, Set specs) {
		this.producttype = producttype;
		this.productNo = productNo;
		this.productName = productName;
		this.remark = remark;
		this.createdTime = createdTime;
		this.updateTime = updateTime;
		this.image = image;
		this.specs = specs;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Producttype getProducttype() {
		return this.producttype;
	}

	public void setProducttype(Producttype producttype) {
		this.producttype = producttype;
	}

	public String getProductNo() {
		return this.productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Timestamp getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Set getSpecs() {
		return this.specs;
	}

	public void setSpecs(Set specs) {
		this.specs = specs;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", producttype=" + producttype
				+ ", productNo=" + productNo + ", productName=" + productName
				+ ", remark=" + remark + ", createdTime=" + createdTime
				+ ", updateTime=" + updateTime + ", image=" + image
				+ ", specs=" + specs + "]";
	}

}